import request from "@/utils/request";

export function echarts1() {
  // 获取当年总体完成度统计数据
  return request({
    url: "/pc/project/project_year_complete_rate_total",
    method: "POST"
  });
}

export function echarts2() {
  // 获取当年总体完成度统计数据
  return request({
    url: "/renovation/project/projectAnnualStatistics",
    method: "POST"
  });
}

export function totalAndArea() {
  // 一期统计和面积统计
  // 获取总体统计及各阶段统计数据
  return request({
    url: "/pc/project/project_main_total",
    method: "POST"
  });
}

export function echarts4() {
  // 获取各阶段统计数据
  return request({
    url: "/renovation/project/projectPhaseStatistics",
    method: "POST"
  });
}

export function totalAndArea2() {
  // 二期统计和面积统计
  // 取总体统计数据
  return request({
    url: "/renovation/project/projectMainStatistics",
    method: "POST"
  });
}

export function getPictureList(data) {
  return request({
    url: "/renovation/project/getPictureList",
    method: "POST",
    data: data
  });
}

export function getRegionListByParentId(data) {
  return request({
    url: "/pc/project/pre_assembly/09_get_region_list_by_parent_id",
    method: "POST",
    formData: data
  });
}

export function projectAnnualDistStatis() {
  return request({
    url: "/renovation/project/projectAnnualDistStatis",
    method: "POST"
  });
}

export function projectCompleteRate() {
  return request({
    url: "/pc/project/project_complete_rate",
    method: "POST"
  });
}

export function projectReadLineStatistics(data) {
  return request({
    url: "/renovation/project/projectReadLineStatistics",
    method: "POST",
    formData: data
  });
}

export function getThreeProjectDetail(data) {
  return request({
    url: "/renovation/project/detail",
    method: "POST",
    formData: data
  });
}

export function getTwoProjectDetail(data) {
  return request({
    url: "/pc/project/select_project_info",
    method: "POST",
    formData: data
  });
}

export function getTwoProjectPkDetail(data) {
  return request({
    url: "/pc/project/select_land_info_by_project_id",
    method: "POST",
    formData: data
  });
}

export function getPkDetailById(data) {
  return request({
    url: "/pc/project/select_land_info",
    method: "POST",
    formData: data
  });
}